﻿package com.victim.snake.util {
	import flash.display.Graphics;
	
	
	public class GraphicsToll {

		public function GraphicsToll() {
			// constructor code
		}
		
		//画矩形边框(graphics,X坐标，Y坐标，宽，高)
		static public function drawRectBorder(graphics:Graphics,x:int,y:int,width:int,height:int):void{
			graphics.moveTo(x,y);
			graphics.lineTo(x+width,y);
			graphics.lineTo(x+width,y+height);
			graphics.lineTo(x,y+height);
			graphics.lineTo(x,y);
		}

	}
	
}
